package com.itheima.d3_transform_stream;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * 目标：掌握不同编码读取乱码的问题。
 */
public class Test1 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("day10io-app2/file/aa/gbkfile.txt");
        int len;
        while ((len = fis.read()) != -1) {
            System.out.print((char)len);
        }
    }
}
